import Payment.Channel.PayChannelWebChat;
import Payment.Channel.PaymentChannelAbstract;
import Payment.Channel.PaymentChannelAliPay;
import Payment.Channel.PaymentChannelYunPay;
import Payment.Method.CardMethod;
import Payment.Method.FaceMethod;
import Payment.Method.FingerMethod;
import Payment.Method.IPayMethod;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
        // to see how IntelliJ IDEA suggests fixing it.
        System.out.println("Hello and welcome!");
        //没有设计模式的
        //CommonPayMethod.pay(PaymentChannel.WeChat,PaymentMethod.Fingerprint,100,"","");
        //采用了桥接设计模式的
        IPayMethod method = new CardMethod();

        PaymentChannelAbstract channel = new PaymentChannelYunPay(method);

        channel.Pay("",0);


    }
}